






<!DOCTYPE html>
<html>

<head>
    <title>添加商品</title>
    <#include "../common.ftl">
</head>

<body class="childrenBody">

<form class="layui-form" style="width:80%;">
    <div class="layui-form-item">
        <label class="layui-form-label">商品名称</label>
        <div class="layui-input-block">
            <input type="text" name="proName" required lay-verify="required" placeholder="请输入商品名称" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">店铺名称</label>
        <div class="layui-input-block">
            <input type="text" name="shopName" required  lay-verify="required" placeholder="请输入店铺名称" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">商品库存</label>
        <div class="layui-input-block">
            <input type="number"  name="proNumber" min="0" required  lay-verify="required" placeholder="请输入商品库存" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">商品分类</label>
        <div class="layui-input-block">
            <select name="proClassid" lay-filter="aihao">
                <option value="">请选择分类</option>
                <option value="1">电子产品</option>
                <option value="2" >文具</option>
                <option value="3">服饰</option>
                <option value="4">其他</option>
            </select>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">商品销量</label>
        <div class="layui-input-block">
            <input type="number" title="请输入数字" min="0" name="proVolume" required  lay-verify="required" placeholder="请输入商品销量" autocomplete="off" class="layui-input">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">商品价格</label>
        <div class="layui-input-block">
            <input type="number" name="proPrice" required  lay-verify="required" placeholder="请输入商品价格" autocomplete="off" class="layui-input">
        </div>
    </div>



    <br/>
    <div class="layui-form-item layui-row layui-col-xs12">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-lg" lay-submit=""  lay-filter="formDemo">立即提交 </button>
            <button class="layui-btn layui-btn-lg layui-btn-normal" id="closeBtn">重置</button>
        </div>
    </div>


</form>

<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/layui/2.6.8/layui.min.js"></script>

<script type="text/javascript" src="${ctx}/js/product/add_product.js"></script>

</body>

</html>






